<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page isELIgnored="false"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<link rel="stylesheet" type="text/css" href="estilos/css.css" />
<title>Insert title here</title>
</head>
<body>

<c:if test="${sessionScope.Cliente == null}">
	<c:set var="mensagem" value="Por favor escolher um cliente!" scope="request"/>
	<jsp:forward page="mensagens.jsp"/>
</c:if>

<c:set var="cliente" value="${sessionScope.Cliente}"/>
<c:set var="planilha" value="${sessionScope.Planilha}"/>
<c:set var="parcelas_pagas" value="${requestScope.parcelas_pagas}"/>
<c:set var="parcelas_restantes" value="${requestScope.parcelas_restantes}"/>
<c:set var="total_pago" value="${requestScope.total_pago}"/>
<c:set var="total_restante" value="${requestScope.total_restante}"/>

<h2>${cliente.nome} - ${planilha.nome_planilha}</h2>

<hr/>
	
		<table align="center" class="parcelas">
		
			<tbody>
			
				<tr>
					<td>Parcelas Pagas:</td>
					<td>${parcelas_pagas}</td>
				</tr>
				<tr>
					<td>Parcelas Restantes:</td>
					<td>${parcelas_restantes}</td>
				</tr>
				<tr>
					<td>Total Pago:</td>
					<td><fmt:formatNumber type="currency">${total_pago}</fmt:formatNumber></td>
				</tr>				
				<tr>
					<td>Total Restante:</td>
					<td><fmt:formatNumber type="currency">${total_restante}</fmt:formatNumber></td>
				</tr>									
					
			</tbody>
		
		</table>

</body>
</html>